{extend name="public/base"/}
{block name="body"}
<div class="main-box clearfix">
	<header class="main-box-header clearfix">
		<div class="pull-left">
			<h2>{$meta_title}</h2>
		</div>
		<div class="pull-right">
		</div>
	</header>
	<div class="main-box-body clearfix">
		<form method="post" class="form form-horizontal" action="edit">
			<div class="tabs-wrapper">
				<ul class="nav nav-tabs">
					<li class="active"><a href="#pc" data-toggle="tab">PC端模板</a></li>
					<li><a href="#mobile" data-toggle="tab">移动端模板</a></li>
				</ul>
				<div class="tab-content">
					<div class="tab-pane fade in active" id="pc">
						<div class="row">
							{volist name="list['pc']" id="item"}
							<div class="col-sm-4 col-md-3">
								<div class="thumbnail">
									<img src="{$item['img']}" alt="{$item['name']}" class="img-rounded">
									<div class="caption">
										<h4>{$item['name']}</h4>
										<p class="text-right">
											{if $pc == $item['id']}
											<button class="btn btn-danger btn-block" disabled>已启用</button>
											{else/}
											<a href="{:url('admin/config/setthemes?name=pc&id='.$item['id'])}" class="btn btn-primary btn-block ajax-get">启用</a>
											{/if}
										</p>
									</div>
								</div>
							</div>
							{/volist}
						</div>
					</div>
					<div class="tab-pane fade" id="mobile">
						<div class="row">
							{volist name="list['mobile']" id="item"}
							<div class="col-sm-4 col-md-3">
								<div class="thumbnail">
									<img src="{$item['img']}" alt="{$item['name']}" class="img-rounded">
									<div class="caption">
										<h4>{$item['name']}</h4>
										<p class="text-right">
											{if $mobile == $item['id']}
											<button class="btn btn-danger btn-block" disabled>已启用</button>
											{else/}
											<a href="{:url('admin/config/setthemes?name=mobile&id='.$item['id'])}" class="btn btn-primary btn-block ajax-get">启用</a>
											{/if}
										</p>
									</div>
								</div>
							</div>
							{/volist}
						</div>
					</div>
				</div>
			</div>
		</form>
	</div>
</div>

{/block}